
:root{
    --maincolor: red;
}
.test{
    display: flex;
    transition: transform 1s;
    background-color: var(--maincolor);
}